import { v4 as uuidv4 } from 'uuid';
export default function getUUID () {
    //每次登录前都应该只有一个uuid被使用   登录成功之后将localStorage中的uuid清除掉
    let uuid = window.localStorage.getItem("sph_uuid");
    if(!uuid){
        uuid = uuidv4()
        window.localStorage.setItem("sph_uuid",uuid);
    }
    return uuid;
}